<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test.js"></script>
</head>
<body id="body">

<div id="content" role="group">

<div role="menu" id="menu">
 <div role="menuitem" id="item">a</div>
 <div role="menuitem">a</div>
</div>

<script>

    description("This tests that deleting a ARIA menu and children do not cause a crash.");

    if (window.accessibilityController) {
      
        var content = accessibilityController.accessibleElementById("item");

        // Don't crash!
        document.getElementById("content").innerHTML = "";  
   
        debug("PASS - There was no crash when removing the ARIA menu from the DOM.");
    }


</script>

</body>
</html>

